package com.ckapi.ckapiclientsdk;


import com.ckapi.ckapiclientsdk.client.CkApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("ckapi-client")
@Data
@ComponentScan
public class CkApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public CkApiClient ckApiClient(){
        return  new CkApiClient(accessKey,secretKey);
    }
}
